package com.tencreat.domain.mall.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * 购物车列表
 * @author zixin
 */
@Data
public class ResMallCartItem {

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty(value = "商品名字")
    private String goodsName;

    @ApiModelProperty(value = "商品价格")
    private BigDecimal price;

    @ApiModelProperty(value = "商品规格")
    private List<ResMallSpecVO> spec;

    @ApiModelProperty(value = "商品规格")
    private String attribute;

    @ApiModelProperty(value = "商品规格ID")
    private Long normsId;

    @ApiModelProperty(value = "数量")
    private Integer number;

    @ApiModelProperty(value = "商品是否选中")
    private Boolean checked;

    @ApiModelProperty(value = "商品图片")
    private String picUrl;

    @ApiModelProperty(value = "商品id")
    private Long goodsId;

    @ApiModelProperty(value = "货品id")
    private Long productId;

    @ApiModelProperty(value = "商品规格id")
    private Long specId;

    @ApiModelProperty(name = "物流方式")
    private Long logisticsId;

    @ApiModelProperty(name = "库存数量")
    private Long inventory;

    @ApiModelProperty(value= "是否上架")
    private Integer isOnSale;

    @ApiModelProperty(value= "会员折扣")
    private String salesDiscount;
}
